package com.iotp.entity.role;

import java.io.Serializable;

/**
 * 系统角色实体类
 * @author Assassin
 */
public class Role implements Serializable {

   /**
	* default SerialVersionUID
	*/
	private static final long serialVersionUID = 1L;

	// Fields

	private Long roleId;// 标识信息-角色Id[主键值]
	private String roleCode;// 标识信息-角色编码
	private Integer roleType;// 标识信息-角色类型
	private Long orgId;// 标识信息-机构Id
	private Integer roleStatus;// 状态信息-角色数据状态
	private Integer isDel;// 状态信息-是否删除[1-是 | 0-否]
	private Integer roleOrder;// 状态信息-角色排序
	private String roleName;// 基本信息-角色名称
	private String roleDesc;// 基本信息-角色说明
	private Long createTime;// 时间信息-创建时间
	private Long updateTime;// 时间信息-更新时间[初始化=NULL]
	
	// Empty Constructor
	public Role() {
		super();
	}
	
	// Full Constructor
	public Role(Long roleId, String roleCode, Integer roleType, Long orgId, Integer roleStatus, Integer isDel, Integer roleOrder, String roleName, String roleDesc, Long createTime, Long updateTime) {
		this.roleId =  roleId;
		this.roleCode =  roleCode;
		this.roleType =  roleType;
		this.orgId =  orgId;
		this.roleStatus =  roleStatus;
		this.isDel =  isDel;
		this.roleOrder =  roleOrder;
		this.roleName =  roleName;
		this.roleDesc =  roleDesc;
		this.createTime =  createTime;
		this.updateTime =  updateTime;
	}

	// Property accessors

	public Long getRoleId () {
		return this.roleId;
	}
	
	public void setRoleId (Long roleId) {
		this.roleId =  roleId;
	}
	
	public String getRoleCode () {
		return this.roleCode;
	}
	
	public void setRoleCode (String roleCode) {
		this.roleCode =  roleCode;
	}
	
	public Integer getRoleType () {
		return this.roleType;
	}
	
	public void setRoleType (Integer roleType) {
		this.roleType =  roleType;
	}
	
	public Long getOrgId () {
		return this.orgId;
	}
	
	public void setOrgId (Long orgId) {
		this.orgId =  orgId;
	}
	
	public Integer getRoleStatus () {
		return this.roleStatus;
	}
	
	public void setRoleStatus (Integer roleStatus) {
		this.roleStatus =  roleStatus;
	}
	
	public Integer getIsDel () {
		return this.isDel;
	}
	
	public void setIsDel (Integer isDel) {
		this.isDel =  isDel;
	}
	
	public Integer getRoleOrder () {
		return this.roleOrder;
	}
	
	public void setRoleOrder (Integer roleOrder) {
		this.roleOrder =  roleOrder;
	}
	
	public String getRoleName () {
		return this.roleName;
	}
	
	public void setRoleName (String roleName) {
		this.roleName =  roleName;
	}
	
	public String getRoleDesc () {
		return this.roleDesc;
	}
	
	public void setRoleDesc (String roleDesc) {
		this.roleDesc =  roleDesc;
	}
	
	public Long getCreateTime () {
		return this.createTime;
	}
	
	public void setCreateTime (Long createTime) {
		this.createTime =  createTime;
	}
	
	public Long getUpdateTime () {
		return this.updateTime;
	}
	
	public void setUpdateTime (Long updateTime) {
		this.updateTime =  updateTime;
	}

	@Override
	public String toString () {
		StringBuffer entityStirngBuffer = new StringBuffer();
		entityStirngBuffer.append("roleId = " +  this.getRoleId() + "\n");
		entityStirngBuffer.append("roleCode = " +  this.getRoleCode() + "\n");
		entityStirngBuffer.append("roleType = " +  this.getRoleType() + "\n");
		entityStirngBuffer.append("orgId = " +  this.getOrgId() + "\n");
		entityStirngBuffer.append("roleStatus = " +  this.getRoleStatus() + "\n");
		entityStirngBuffer.append("isDel = " +  this.getIsDel() + "\n");
		entityStirngBuffer.append("roleOrder = " +  this.getRoleOrder() + "\n");
		entityStirngBuffer.append("roleName = " +  this.getRoleName() + "\n");
		entityStirngBuffer.append("roleDesc = " +  this.getRoleDesc() + "\n");
		entityStirngBuffer.append("createTime = " +  this.getCreateTime() + "\n");
		entityStirngBuffer.append("updateTime = " +  this.getUpdateTime() + "\n");
		return entityStirngBuffer.toString();
	}
	
}